package com.api.shopapi.service;



import com.api.shopapi.entity.RoleMenuRel;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface RoleMenuRelService {

    int insert(RoleMenuRel roleMenuRel);

    int deleteByRoleMenuRelCode(String roleMenuRelCode);

    int updateByRoleMenuRelCode(RoleMenuRel roleMenuRel);

    RoleMenuRel getByRoleMenuRelCode(String roleMenuRelCode);

    List<RoleMenuRel> getList();

    List<RoleMenuRel> getListByRoleCode(String roleCode);

    PageInfo<RoleMenuRel> getPageInfo(int pageNum, int pageSize);

}
